package com.example.userlogindemo.repository;

import com.example.userlogindemo.entity.HelpInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface HelpInfoRepository extends JpaRepository<HelpInfo, Integer> {
    List<HelpInfo> findByCityAndState(String city, int state);
    List<HelpInfo> findByUsername(String username);
    List<HelpInfo> findByResponseUsername(String responseUsername);
    List<HelpInfo> findByTypeAndState(int type, int state);
}
